/// @tags: Greek
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <numeric>

using std::cin, std::cout, std::endl;

namespace BlueQuantum {

constexpr int maxn = 5e3 + 2;

long long a[maxn], sum[maxn];

double solve(int n, int m, double s) {
  if (n < 1 || std::abs(s) < 1e-8) return 0;
  sum[n] = a[n];
  int index = n;
  for (int i = n - 1; i; --i) {
    sum[i] = a[i] + sum[i + 1];
    if (sum[i] * (n - index + 1) >= sum[index] * (n - i + 1)) index = i;
  }
  double res = std::min((double)m, s / (n - index + 1));
  double ret = 0;
  for (int i = index; i <= n; ++i) {
    ret += a[i] * res;
    s -= res;
  }
  return ret + solve(index - 1, m, s);
}

int main() {
  int n, m, s;
  cin >> n >> m >> s;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  cout << std::fixed << solve(n, m, s);
  return 0;
}

}  // namespace BlueQuantum

int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
  freopen("/tmp/CodeTmp/testdata.in", "r", stdin);
  freopen("/tmp/CodeTmp/testdata.out", "w", stdout);
#else
  freopen("ARC128C Max Dot.in", "r", stdin);
  freopen("ARC128C Max Dot.out", "w", stdout);
#endif
#endif

  std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  return BlueQuantum::main();
}
